import { i18nRender } from '@/locales'
// 参与配置的字段
const dynamicFields = [
  {
    title: i18nRender('authenticationCenter.org.jobNumber'),
    dataIndex: 'jobNumber',
    width: 120,
    ellipsis: true
  },
  {
    title: i18nRender('authenticationCenter.org.username'),
    dataIndex: 'username',
    width: 150,
    ellipsis: true
  },
  {
    title: i18nRender('authenticationCenter.org.personName'),
    dataIndex: 'name',
    width: 150,
    ellipsis: true,
    scopedSlots: { customRender: 'name' }
  },
  {
    title: i18nRender('authenticationCenter.org.mobile'),
    dataIndex: 'mobile',
    width: 150,
    ellipsis: true
  },
  {
    title: i18nRender('authenticationCenter.org.phoneNumber'),
    dataIndex: 'telephone',
    width: 150,
    ellipsis: true
  },
  {
    title: i18nRender('authenticationCenter.org.dept'),
    dataIndex: 'orgNames',
    width: 200,
    ellipsis: true
  },
  {
    title: i18nRender('authenticationCenter.org.position'),
    dataIndex: 'position',
    width: 150,
    ellipsis: true
  },
  {
    title: i18nRender('authenticationCenter.org.email'),
    dataIndex: 'email',
    width: 250,
    ellipsis: true
  },
  {
    title: i18nRender('common.status'),
    dataIndex: 'status',
    width: 80,
    scopedSlots: { customRender: 'status' }
  }
];

// 不参与配置的字段
const constantFields = [
  {
    title: i18nRender('common.action'),
    dataIndex: 'action',
    fixed: 'right',
    width: 180,
    align: 'center',
    scopedSlots: { customRender: 'action' }
  }
];

export {
  dynamicFields,
  constantFields,
};
